# 数据结构——列表

list1 = [2, 4, 8, 'tom', 'jack']

list2 = [3, 4, 6, 8, 9, 4, 9]

list3 = ["c", "f", "w", "g", "c"]


print(list3[1])

print(list2)

list1[2] = 'mark'

print(list1)

list3.append(555)

del list3[1]

print(list3)

# for x in list3:
# 	print(x)

# print(len(list1))


# from array import *
# a = array([['Mon',18,20,22,17],['Tue',11,18,21,18],
#            ['Wed',15,21,20,19],['Thu',11,20,22,21],
#            ['Fri',18,17,23,22],['Sat',12,22,20,18],
#            ['Sun',13,15,19,16]])

# print("list3 index number")
# print(list2.index(4))
# print(max(list2))
#
# list2.extend([11, 12, 13])
# print(list2)

# 数组切片
list4 = [3, 4, 6, 8, 9, 12, 10]
list5 = [22, 23]
print(list4+list5)
print(list4[:1])
print(list4[:1] + list4[1 + 1:])


# list5 = list4
# list5.pop()
# print(list4)
# print(list5)
